package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDTO;
import com.zzyl.entity.NursingPlan;

import com.zzyl.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
    Page<NursingPlan> selectPage(@Param("name")String name, @Param("status")Integer status);


    // 插入护理计划 并且获取返回值 返回值为插入的id
    void insert(NursingPlan nursingPlan);

    NursingPlan selectById(Long id);

    void updateById(NursingPlan nursingPlan);

    void deleteByPrimaryKey(Long id);

    List<NursingPlan> selectList();
}
